package com.fruitsales.user.pojo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class user {
	private int id;
	
    private String LoginName;

    private String pwd;

    private String email;

    private String phone;

    private String pic;
    
    private String name;
    
    @DateTimeFormat(pattern = "yyyy-MM-dd")
   	@JsonFormat(pattern = "yyyy-MM-dd ", timezone = "GMT+8")
    private Date birthday;
    
    private String sex;
    public user() {
		super();
	}

	


	public user(int id, String loginName, String pwd, String email, String phone, String pic, String name,
			Date birthday, String sex) {
		super();
		this.id = id;
		LoginName = loginName;
		this.pwd = pwd;
		this.email = email;
		this.phone = phone;
		this.pic = pic;
		this.name = name;
		this.birthday = birthday;
		this.sex = sex;
	}




	public user(String loginName, String pwd, String email, String phone, String pic, String name, Date birthday,
			String sex) {
		super();
		LoginName = loginName;
		this.pwd = pwd;
		this.email = email;
		this.phone = phone;
		this.pic = pic;
		this.name = name;
		this.birthday = birthday;
		this.sex = sex;
	}




	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}


	public Date getBirthday() {
		return birthday;
	}


	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}


	public String getSex() {
		return sex;
	}


	public void setSex(String sex) {
		this.sex = sex;
	}


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getLoginName() {
        return LoginName;
    }

    public void setLoginName(String LoginName) {
        this.LoginName = LoginName == null ? null : LoginName.trim();
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd == null ? null : pwd.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic == null ? null : pic.trim();
    }

	@Override
	public String toString() {
		return "user [id=" + id + ", LoginName=" + LoginName + ", pwd=" + pwd + ", email=" + email + ", phone=" + phone
				+ ", pic=" + pic + ", name=" + name + ", birthday=" + birthday + ", sex=" + sex + "]";
	}


    
}